//告警最多店的图表

import { barParams } from './barParams.js'

export const alarmTop = (chartData) => { 
  const { clientWidth:w } = document.body
  const alarmOptionData = []
  const xOptionData = []
  chartData.forEach(item => {
    alarmOptionData.push(item.alarm_total),
    xOptionData.push(item.branch_name)
  })
  return barParams(xOptionData, alarmOptionData, '告警次数', 'rgba(114,197,241,0.8)')
  
}